<?php
/**
 * 跨域预检控制器
 *
 * Author: Zeon
 * Date: 2017/9/16
 * Created by Panxsoft.
 */
namespace App\Http\Controllers;

class CorsController extends Controller
{
    /**
     * 当跨域 post 时，可能浏览器会先使用 options 请求方法确认跨域
     * return any thing is ok
     *
     * @return string
     */
    public function preFlightCheck()
    {
        return 'this route pass cors pre flight check';
    }
}
